package match

import (
	"sanguo/cluster"
)

type Object struct {
	NodeID        uint64
	ReqTime       int64 //发起请求时间
	MatchType     int32 //匹配副本类型
	MatchLevel    int32 //匹配等级
	BattleLevelId int32
	Size          int32
	TeamID        uint64
	Roles         map[uint64]*RoleInfo
}

type RoleInfo struct {
	UserID      string
	RoleID      uint64
	Level       int32  //角色等级
	Name        string //角色名
	Portrait    int32  //头像
	Outline     int32  //外形
	Face        int32
	Hair        int32
	HairColor   int32
	EyeColor    int32
	Cloth       int32
	ClothColor  int32
	Game        cluster.PeerID
	BattleAttrs map[int32]int32
	Skills      []*Skill
	Weapon1     int32
	Weapon2     int32
	RoleType    int32
}

type Skill struct {
	SkillID     int32
	SkillLevel  int32
	SkillType   int32
	SpecialStar int32
}

type Room struct {
	RoomID        int64
	TeamID        uint64 //队伍ID
	MatchType     int32  //匹配副本类型
	MatchLevel    int32  //匹配等级
	BattleLevelID int32
	BattleAddr    cluster.PeerID
	Roles         map[uint64]*RoleInfo
	Token         string
	DestroyTime   int64 //房间销毁时间
}
